﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Input = Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Kinect;
using BicycleTrafficSimulator.DataModel;
using System.Threading;
using BicycleTrafficSimulator.Presentation;
using BicycleTrafficSimulator.Business;

namespace BicycleTrafficSimulator
{
    class GameHardLevel : Game
    {      
        public GameHardLevel(Scene _scene) : base(_scene)
        { }

        /// <summary>
        /// Allows the game to perform any initialization it needs to before starting to run.
        /// This is where it can query for any required services and load any non-graphic
        /// related content.  Calling base.Initialize will enumerate through any components
        /// and initialize them as well.
        /// </summary>
        public override void Initialize()
        {

            string cityPlan = "CityPlanHardGame.txt";
            this.city = new City(cityPlan);
            this.car = new Car("hard");

            base.Initialize();  
        }


        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {           
                   
            base.LoadContent();
            city.LoadContent(gameContent, "citytexture_hardlevel", GraphicsDevice);  
        }

        /// <summary>
        /// UnloadContent will be called once per game and is the place to unload
        /// all content.
        /// </summary>
        public void UnloadContent()
        {
            //base.UnloadContent();
            city.UnloadContent();
            
        }

        
    }
}
